$(function () {
    // 配置路径
    var pageUrl = config.urlAnaConfig.testPath;
    // 获取Cookie
    function getCookie(name){
        var strcookie = document.cookie;//获取cookie字符串
        var arrcookie = strcookie.split("; ");//分割
    //       console.log(arrcookie);
        //遍历匹配
        for ( var i = 0; i < arrcookie.length; i++) {
            var arr = arrcookie[i].split("=");
                if (arr[0] ==name){
                    return arr[1];
                }
        }
        return "";
    }
    var name = "tokenval";
    // tiken值
    var cookie_value = getCookie(name);
    console.log(cookie_value);
    var name1 = "userName";
    // 用户名值
    var cookie_value1 = getCookie(name1);
    $(".userName").html(cookie_value1);
    $(".nav-usename").html(cookie_value1);
    /*选货*/



    // 下拉数据
    $.ajax({
        url: pageUrl+'/api/business/getplatforms',
        type: 'POST',
        dataType: 'json',
        headers: {
            Authorization: 'Bearer '+cookie_value
        },
        success: function (data) {
            var msg = '';
            if (data) {
                if (data.code === 200) {
    //                  店铺名称
                    var details1 = data.data.platforms;
                    console.log(details1);
                    var details1F = $(".details1");
                    /*for in 循环*/
                     for(var i in details1){
                         var text="<li>"+details1[i]+"</li>";
                         details1F.append(text);
                     };
                }
            }
        },
        error:  function (XMLHttpRequest, textStatus, errorThrown) {
                    // msg
                    var errorTips = XMLHttpRequest.responseJSON.msg;
                    if (errorTips=='Division by zero'){
                        $(".layer1 .content").html("数据错误");
                        $(".layer1").show();
                        console.log(errorTips);
                    } else if(errorTips=='Token has expired'){
                        $(".layer1 .content").html("令牌过期");
                        $(".layer1").show();
                        window.location.href="login.html";
                    }


                }

    });
    $('.details1').on("click","li",function () {
        $(".storeName").attr("disabled",false).removeClass("border-hui");
        var details1D= $(this).html();
        console.log(details1D);
        $.ajax({
            url: pageUrl+'/api/business/getstorebyplatform',
            type: 'POST',
            dataType: 'json',
            data:{
                platform:details1D
            },
            headers: {
                Authorization: 'Bearer '+cookie_value
            },
            success: function (data) {
                var msg = '';
                if (data) {
                    if (data.code === 200) {
        //                  店铺名称
                        var details2 = data.data.stores;
                        console.log(details2);
                        var details2F = $(".details2");
                        $(".details2 li").remove();
                        /*for in 循环*/
                         for(var i in details2){
                             var text="<li>"+details2[i]+"</li>";
                             details2F.append(text);
                         };

                    }
                }
            },
            error:  function (XMLHttpRequest, textStatus, errorThrown) {
                    // msg
                    var errorTips = XMLHttpRequest.responseJSON.msg;
                    if (errorTips=='Division by zero'){
                        $(".layer1 .content").html("数据错误");
                        $(".layer1").show();
                        console.log(errorTips);
                    } else if(errorTips=='Token has expired'){
                        $(".layer1 .content").html("令牌过期");
                        $(".layer1").show();
                        window.location.href="login.html";
                    }


                }

        });
    });

    $(".details2").on("click","li",function () {
        $(".application").attr("disabled",false).addClass("querenguo");
    });
   /* // 右上角数据
    $.ajax({
        url: pageUrl+'/api/business/gettargetdata',
        type: 'POST',
        dataType: 'json',
        headers: {
            Authorization: 'Bearer '+cookie_value
        },
        success: function (data) {
            var msg = '';
            if (data) {
                if (data.code === 200) {
    //                  店铺名称
                    var mainData = data.data;
                    $(".yearData1").html(mainData.年度目标);
                    $(".yearData2").html(mainData.年度修正目标);
                    $(".yearData3").html(mainData.年度累计销售额);
                    $(".yearData4 span").html(mainData.年度目标完成率);
                    $(".yearData5 span").html(mainData.年度时间流失率);
                    $(".monthData1").html(mainData.当月目标);
                    $(".monthData2").html(mainData.当月累计销售额);
                    $(".monthData3").html(mainData.当月销售同比);
                    $(".dayData1").html(mainData.当前目标完成率);

                }
            }
        },
        error:  function (XMLHttpRequest, textStatus, errorThrown) {
                    // msg
                    var errorTips = XMLHttpRequest.responseJSON.msg;
                    if (errorTips=='Division by zero'){
                        $(".layer1 .content").html("数据错误");
                        $(".layer1").show();
                        console.log(errorTips);
                    } else if(errorTips=='Token has expired'){
                        $(".layer1 .content").html("令牌过期");
                        $(".layer1").show();
                        window.location.href="login.html";
                    }


                }

    });*/


    // 图
    $.ajax({
        url: pageUrl+'/api/common/getaccesstoken',
        type: 'POST',
        dataType: 'json',
        success: function (data) {
            var msg = '';
            if (data) {
                var accessToken = data.data.accessToken.value;
                console.log(accessToken);
                var embedUrl1 = "https://app.powerbi.cn/reportEmbed?reportId=90944f9d-35ca-477e-b5cb-791e46c9ea30&groupId=13e42e94-3404-46d8-b605-228c35984df3&pageName=ReportSection4d8fd0ad93feb1963dc9&pageName=ReportSection03fd4dc3149127c99303&filter=platform_table/code eq 'all' and store_table/code eq 'all'";
                var embedUrl2 = "https://app.powerbi.cn/reportEmbed?reportId=90944f9d-35ca-477e-b5cb-791e46c9ea30&groupId=13e42e94-3404-46d8-b605-228c35984df3&pageName=ReportSection654d85e77c3fe3939a06&pageName=ReportSection03fd4dc3149127c99303&filter=platform_table/code eq 'all' and store_table/code eq 'all'";
                var embedUr16 = "https://app.powerbi.cn/reportEmbed?reportId=90944f9d-35ca-477e-b5cb-791e46c9ea30&groupId=13e42e94-3404-46d8-b605-228c35984df3&pageName=ReportSection543aaed9b30c9666aa76&pageName=ReportSection03fd4dc3149127c99303&filter=platform_table/code eq 'all' and store_table/code eq 'all'";
                var embedUr13 = "https://app.powerbi.cn/reportEmbed?reportId=90944f9d-35ca-477e-b5cb-791e46c9ea30&groupId=13e42e94-3404-46d8-b605-228c35984df3&pageName=ReportSection2e4cd80222a4032f803d&pageName=ReportSection03fd4dc3149127c99303&filter=platform_table/code eq 'all' and store_table/code eq 'all'";
                var embedUr14 = "https://app.powerbi.cn/reportEmbed?reportId=90944f9d-35ca-477e-b5cb-791e46c9ea30&groupId=13e42e94-3404-46d8-b605-228c35984df3&pageName=ReportSection&pageName=ReportSection03fd4dc3149127c99303&filter=platform_table/code eq 'all' and store_table/code eq 'all'";
                var embedUr15 = "https://app.powerbi.cn/reportEmbed?reportId=90944f9d-35ca-477e-b5cb-791e46c9ea30&groupId=13e42e94-3404-46d8-b605-228c35984df3&pageName=ReportSection03fd4dc3149127c99303&pageName=ReportSection03fd4dc3149127c99303&filter=platform_table/code eq 'all' and store_table/code eq 'all'";
                tu1(accessToken,embedUrl1);
                tu2(accessToken,embedUrl2);
                tu6(accessToken,embedUr16);
                tu3(accessToken,embedUr13);
                tu4(accessToken,embedUr14);
                tu5(accessToken,embedUr15);
            }
        },
        error:  function (XMLHttpRequest, textStatus, errorThrown) {
                    // msg
                    var errorTips = XMLHttpRequest.responseJSON.msg;
                    if (errorTips=='Division by zero'){
                        $(".layer1 .content").html("数据错误");
                        $(".layer1").show();
                        console.log(errorTips);
                    } else if(errorTips=='Token has expired'){
                        $(".layer1 .content").html("令牌过期");
                        $(".layer1").show();
                        window.location.href="login.html";
                    }


                }
    });

    // 图形重置
    var pingjieIndex1 = 0;
    var pingjieIndex2 = 0;
    var pingjieIndex3 = 0;
    var pingjieIndex4 = 0;
    var pingjieIndex5 = 0;
    var pingjieIndex6 = 0;
    function pinjie() {
        // 拼接图形盒子1
        pingjieIndex1++;
        var tu1Id = "pingjieIndex1";
        tu1Id = tu1Id + pingjieIndex1;
        console.log(tu1Id);
        var arrtx1 = [];
        arrtx1.push("<div class='tu11 no-border'" + "id=" +tu1Id +">");
        arrtx1.push("</div>");
        str1 = arrtx1.join('');
        $(".tu1").append(str1);
        // 删除其他元素
        $('.tu1'+' #'+tu1Id).siblings().remove();

        // 拼接图形盒子2
        pingjieIndex2++;
        var tu2Id = "pingjieIndex2";
        tu2Id = tu2Id + pingjieIndex2;
        console.log(tu2Id);
        var arrtx2 = [];
        arrtx2.push("<div class='tu22 no-border'" + "id=" +tu2Id +">");
        arrtx2.push("</div>");
        str2 = arrtx2.join('');
        $(".tu2").append(str2);
        // 删除其他元素
        $('.tu2'+' #'+tu2Id).siblings().remove();

        // 拼接图形盒子3
        pingjieIndex3++;
        var tu3Id = "pingjieIndex3";
        tu3Id = tu3Id + pingjieIndex3;
        console.log(tu3Id);
        var arrtx3 = [];
        arrtx3.push("<div class='tu33 no-border'" + "id=" +tu3Id +">");
        arrtx3.push("</div>");
        str3 = arrtx3.join('');
        $(".tu3").append(str3);
        // 删除其他元素
        $('.tu3'+' #'+tu3Id).siblings().remove();

        // 拼接图形盒子4
        pingjieIndex4++;
        var tu4Id = "pingjieIndex4";
        tu4Id = tu4Id + pingjieIndex4;
        console.log(tu4Id);
        var arrtx4 = [];
        arrtx4.push("<div class='tu44 no-border'" + "id=" +tu4Id +">");
        arrtx4.push("</div>");
        str4 = arrtx4.join('');
        $(".tu4").append(str4);
        // 删除其他元素
        $('.tu4'+' #'+tu4Id).siblings().remove();

        // 拼接图形盒子5
        pingjieIndex5++;
        var tu5Id = "pingjieIndex5";
        tu5Id = tu5Id + pingjieIndex5;
        console.log(tu5Id);
        var arrtx5 = [];
        arrtx5.push("<div class='tu55 no-border'" + "id=" +tu5Id +">");
        arrtx5.push("</div>");
        str5 = arrtx5.join('');
        $(".tu5").append(str5);
        // 删除其他元素
        $('.tu5'+' #'+tu5Id).siblings().remove();

        // 拼接图形盒子6
        pingjieIndex6++;
        var tu6Id = "pingjieIndex6";
        tu6Id = tu6Id + pingjieIndex6;
        console.log(tu6Id);
        var arrtx6 = [];
        arrtx6.push("<div class='tu66 no-border'" + "id=" +tu6Id +">");
        arrtx6.push("</div>");
        str6 = arrtx6.join('');
        $(".tu6").append(str6);
        // 删除其他元素
        $('.tu6'+' #'+tu6Id).siblings().remove();
    }
    $(".application").on("click",function (e) {
        var event=e||event;
        event.preventDefault();
        var details1Data = $(".platForm").val();
        var detai2s1Data = $(".storeName").val();
        if (details1Data == 0 || detai2s1Data==0){
            alert("请选择完整选项");
            return false;
        };
        // 图表拼接
        pinjie();
        var embedUrl1 = "https://app.powerbi.cn/reportEmbed?reportId=90944f9d-35ca-477e-b5cb-791e46c9ea30&groupId=13e42e94-3404-46d8-b605-228c35984df3&pageName=ReportSection4d8fd0ad93feb1963dc9";
        var embedUrl2 = "https://app.powerbi.cn/reportEmbed?reportId=90944f9d-35ca-477e-b5cb-791e46c9ea30&groupId=13e42e94-3404-46d8-b605-228c35984df3&pageName=ReportSection654d85e77c3fe3939a06";
        var embedUr16 = "https://app.powerbi.cn/reportEmbed?reportId=90944f9d-35ca-477e-b5cb-791e46c9ea30&groupId=13e42e94-3404-46d8-b605-228c35984df3&pageName=ReportSection543aaed9b30c9666aa76";
        var embedUr13 = "https://app.powerbi.cn/reportEmbed?reportId=90944f9d-35ca-477e-b5cb-791e46c9ea30&groupId=13e42e94-3404-46d8-b605-228c35984df3&pageName=ReportSection2e4cd80222a4032f803d";
        var embedUr14 = "https://app.powerbi.cn/reportEmbed?reportId=90944f9d-35ca-477e-b5cb-791e46c9ea30&groupId=13e42e94-3404-46d8-b605-228c35984df3&pageName=ReportSection";
        var embedUr15 = "https://app.powerbi.cn/reportEmbed?reportId=90944f9d-35ca-477e-b5cb-791e46c9ea30&groupId=13e42e94-3404-46d8-b605-228c35984df3&pageName=ReportSection03fd4dc3149127c99303";
        embedUrl1 = embedUrl1+"&filter=platform_table/code eq"+" '"+details1Data+"' "+"and store_table/code eq "+"'"+detai2s1Data+"'";
        embedUrl2 = embedUrl2+"&filter=platform_table/code eq"+" '"+details1Data+"' "+"and store_table/code eq "+"'"+detai2s1Data+"'";
        embedUr16 = embedUr16+"&filter=platform_table/code eq"+" '"+details1Data+"' "+"and store_table/code eq "+"'"+detai2s1Data+"'";
        embedUr13 = embedUr13+"&filter=platform_table/code eq"+" '"+details1Data+"' "+"and store_table/code eq "+"'"+detai2s1Data+"'";
        embedUr14 = embedUr14+"&filter=platform_table/code eq"+" '"+details1Data+"' "+"and store_table/code eq "+"'"+detai2s1Data+"'";
        embedUr15 = embedUr15+"&filter=platform_table/code eq"+" '"+details1Data+"' "+"and store_table/code eq "+"'"+detai2s1Data+"'";
        console.log(embedUr15);
        $.ajax({
            url: pageUrl+'/api/common/getaccesstoken',
            type: 'POST',
            dataType: 'json',
            success: function (data) {
                var msg = '';
                if (data) {
                    var accessToken = data.data.accessToken.value;
                    console.log(accessToken);
                    tu1(accessToken,embedUrl1);
                    tu2(accessToken,embedUrl2);
                    tu6(accessToken,embedUr16);
                    tu3(accessToken,embedUr13);
                    tu4(accessToken,embedUr14);
                    tu5(accessToken,embedUr15);
                }
            },
            error:  function (XMLHttpRequest, textStatus, errorThrown) {
                    // msg
                    var errorTips = XMLHttpRequest.responseJSON.msg;
                    if (errorTips=='Division by zero'){
                        $(".layer1 .content").html("数据错误");
                        $(".layer1").show();
                        console.log(errorTips);
                    } else if(errorTips=='Token has expired'){
                        $(".layer1 .content").html("令牌过期");
                        $(".layer1").show();
                        window.location.href="login.html";
                    }


                }
        });
    });

    // 目标进度条
    function tu1(accessToken,embedUrl1) {
        var accessToken = accessToken;
        embedUrl = embedUrl1;
        var embedReportId = "90944f9d-35ca-477e-b5cb-791e46c9ea30";
        var models = window['powerbi-client'].models;
        var config = {
            type: 'report',
            // tokenType: models.TokenType.Embed,
            accessToken: accessToken,
            embedUrl: embedUrl,
            id: embedReportId,
            viewMode: models.ViewMode.View,
            // filters: filter,
            permissions: models.Permissions.All ,
            settings: {
                filterPaneEnabled: false,
                navContentPaneEnabled: false
            }
        };
        var tu11 = $('.tu11')[0];
        if ("" != "") {
            $("#RLS").prop('checked', true);
            $("#RLSdiv").show();
        }
        else
        {
            $("#RLS").prop('checked', false);
            $("#RLSdiv").hide();
        }
        if ("False" == "True") {
            $("#noRLSdiv").hide();
            $("#RLS").removeAttr("disabled");
            $("#RLS").change(function () {
                if ($(this).is(":checked")) {
                    $("#RLSdiv").show(300);
                } else {
                    $("#RLSdiv").hide(200);
                }
            });
        }
        else
        {
            $("#noRLSdiv").show();
        }
        var report = powerbi.embed(tu11, config);
    };
    // 目标完成情况
    function tu2(accessToken,embedUrl2) {
        accessToken = accessToken;
        embedUrl = embedUrl2;
        var embedReportId = "90944f9d-35ca-477e-b5cb-791e46c9ea30";
        // Get models. models contains enums that can be used.
        var models = window['powerbi-client'].models;
        // Embed configuration used to describe the what and how to embed.
        // This object is used when calling powerbi.embed.
        // This also includes settings and options such as filters.
        // You can find more information at https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details.
        var config = {
            type: 'report',
            // tokenType: models.TokenType.Embed,
            accessToken: accessToken,
            embedUrl: embedUrl,
            id: embedReportId,
            viewMode: models.ViewMode.View,
            // filters: filter,
            permissions: models.Permissions.All ,
            settings: {
                filterPaneEnabled: false,
                navContentPaneEnabled: false
            }
        };
        // Get a reference to the embedded report HTML element
        var tu22 = $('.tu22')[0];
        if ("" != "") {
            $("#RLS").prop('checked', true);
            $("#RLSdiv").show();
        }
        else
        {
            $("#RLS").prop('checked', false);
            $("#RLSdiv").hide();
        }
        if ("False" == "True") {
            $("#noRLSdiv").hide();
            $("#RLS").removeAttr("disabled");
            $("#RLS").change(function () {
                if ($(this).is(":checked")) {
                    $("#RLSdiv").show(300);
                } else {
                    $("#RLSdiv").hide(200);
                }
            });
        }
        else
        {
            $("#noRLSdiv").show();
        }
        var report = powerbi.embed(tu22, config);
    };
    // 月目标达成情况
    function tu6(accessToken,embedUr16) {
        var accessToken = accessToken;
        var embedUrl = embedUr16;
        var embedReportId = "90944f9d-35ca-477e-b5cb-791e46c9ea30";
        var models = window['powerbi-client'].models;
        var config = {
            type: 'report',
            // tokenType: models.TokenType.Embed,
            accessToken: accessToken,
            embedUrl: embedUrl,
            id: embedReportId,
            viewMode: models.ViewMode.View,
            // filters: filter,
            permissions: models.Permissions.All ,
            settings: {
                filterPaneEnabled: false,
                navContentPaneEnabled: false
            }
        };
        var tu66 = $('.tu66')[0];
        if ("" != "") {
            $("#RLS").prop('checked', true);
            $("#RLSdiv").show();
        }
        else
        {
            $("#RLS").prop('checked', false);
            $("#RLSdiv").hide();
        }
        if ("False" == "True") {
            $("#noRLSdiv").hide();
            $("#RLS").removeAttr("disabled");
            $("#RLS").change(function () {
                if ($(this).is(":checked")) {
                    $("#RLSdiv").show(300);
                } else {
                    $("#RLSdiv").hide(200);
                }
            });
        }
        else
        {
            $("#noRLSdiv").show();
        }
        var report = powerbi.embed(tu66, config);

    };
    // 当期
    function tu3(accessToken,embedUr13) {
        var accessToken = accessToken;
        var embedUrl = embedUr13;
        var embedReportId = "90944f9d-35ca-477e-b5cb-791e46c9ea30";
        var models = window['powerbi-client'].models;
        var config = {
            type: 'report',
            accessToken: accessToken,
            embedUrl: embedUrl,
            id: embedReportId,
            viewMode: models.ViewMode.View,
            permissions: models.Permissions.All ,
            settings: {
                filterPaneEnabled: false,
                navContentPaneEnabled: false
            }
        };
        var tu33 = $('.tu33')[0];
        if ("" != "") {
            $("#RLS").prop('checked', true);
            $("#RLSdiv").show();
        }
        else
        {
            $("#RLS").prop('checked', false);
            $("#RLSdiv").hide();
        }
        if ("False" == "True") {
            $("#noRLSdiv").hide();
            $("#RLS").removeAttr("disabled");
            $("#RLS").change(function () {
                if ($(this).is(":checked")) {
                    $("#RLSdiv").show(300);
                } else {
                    $("#RLSdiv").hide(200);
                }
            });
        }
        else
        {
            $("#noRLSdiv").show();
        }
        var report = powerbi.embed(tu33, config);
    };
    // 同期
    function tu4(accessToken,embedUr14) {
        var accessToken = accessToken;
        var embedUrl = embedUr14;
        console.log(embedUrl);
        var embedReportId = "90944f9d-35ca-477e-b5cb-791e46c9ea30";
        // Get models. models contains enums that can be used.
        var models = window['powerbi-client'].models;
        // Embed configuration used to describe the what and how to embed.
        // This object is used when calling powerbi.embed.
        // This also includes settings and options such as filters.
        // You can find more information at https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details.
        var config = {
            type: 'report',
            // tokenType: models.TokenType.Embed,
            accessToken: accessToken,
            embedUrl: embedUrl,
            id: embedReportId,
            viewMode: models.ViewMode.View,
            // filters: filter,
            permissions: models.Permissions.All ,
            settings: {
                filterPaneEnabled: false,
                navContentPaneEnabled: false
            }
        };
        // Get a reference to the embedded report HTML element
        var tu44 = $('.tu44')[0];
        if ("" != "") {
            $("#RLS").prop('checked', true);
            $("#RLSdiv").show();
        }
        else
        {
            $("#RLS").prop('checked', false);
            $("#RLSdiv").hide();
        }
        if ("False" == "True") {
            $("#noRLSdiv").hide();
            $("#RLS").removeAttr("disabled");
            $("#RLS").change(function () {
                if ($(this).is(":checked")) {
                    $("#RLSdiv").show(300);
                } else {
                    $("#RLSdiv").hide(200);
                }
            });
        }
        else
        {
            $("#noRLSdiv").show();
        }
        var report = powerbi.embed(tu44, config);
    };
    // Q季度
    function tu5(accessToken,embedUr15) {
        var accessToken = accessToken;
        var embedUrl = embedUr15;
        console.log(embedUrl);
        var embedReportId = "90944f9d-35ca-477e-b5cb-791e46c9ea30";
        var models = window['powerbi-client'].models;
        var config = {
            type: 'report',
            accessToken: accessToken,
            embedUrl: embedUrl,
            id: embedReportId,
            viewMode: models.ViewMode.View,
            // filters: filter,
            permissions: models.Permissions.All ,
            settings: {
                filterPaneEnabled: false,
                navContentPaneEnabled: false
            }
        };
        var tu55 = $('.tu55')[0];
        if ("" != "") {
            $("#RLS").prop('checked', true);
            $("#RLSdiv").show();
        }
        else
        {
            $("#RLS").prop('checked', false);
            $("#RLSdiv").hide();
        }
        if ("False" == "True") {
            $("#noRLSdiv").hide();
            $("#RLS").removeAttr("disabled");
            $("#RLS").change(function () {
                if ($(this).is(":checked")) {
                    $("#RLSdiv").show(300);
                } else {
                    $("#RLSdiv").hide(200);
                }
            });
        }
        else
        {
            $("#noRLSdiv").show();
        }
        var report = powerbi.embed(tu55, config);
    };
    // table切换
    $(".table-md3 li").on("click",function () {
        $(".table-md3 li").removeClass("cur");
        $(this).addClass("cur");
        if ($(".table-md3 li").eq(0).hasClass("cur")){
            $(".tu3").css({
                "opacity":"1",
                "z-index":"10"
            });
            $(".tu4").css({
                "opacity":"0",
                "z-index":"9"
            });
            $(".tu5").css({
                "opacity":"0",
                "z-index":"9"
            });
        } else if($(".table-md3 li").eq(1).hasClass("cur")){
            $(".tu3").css({
                "opacity":"0",
                "z-index":"9"
            });
            $(".tu4").css({
                "opacity":"1",
                "z-index":"10"
            });
            $(".tu5").css({
                "opacity":"0",
                "z-index":"9"
            });
        }else if($(".table-md3 li").eq(2).hasClass("cur")){
            $(".tu3").css({
                "opacity":"0",
                "z-index":"9"
            });
            $(".tu4").css({
                "opacity":"0",
                "z-index":"9"
            });
            $(".tu5").css({
                "opacity":"1",
                "z-index":"10"
            });
        }
    });


    // tips弹框
    $(".module-01 .gantan").on("click",function () {
        $(".fixed").show();
        $(".fixedmain").show();
        $(".main-con").html("");
        $(".main-con").html("");
    });
    $(".module-02 .gantan").on("click",function () {
        $(".fixed").show();
        $(".fixedmain").show();
        $(".main-con").html("");
    });
    $(".module-03 .gantan").on("click",function () {
        $(".fixed").show();
        $(".fixedmain").show();
        $(".main-con").html("");
    });
    $(".module-04 .gantan").on("click",function () {
        $(".fixed").show();
        $(".fixedmain").show();
        $(".main-con").html("");
    });
    $(".module-05 .gantan").on("click",function () {
        $(".fixed").show();
        $(".fixedmain").show();
        $(".main-con").html("");
    });
    $(".module-06 .gantan").on("click",function () {
        $(".fixed").show();
        $(".fixedmain").show();
        $(".main-con").html("");
    });
    $('.close_re').click(function(){
        $('.fixed').hide()
        $('.fixedmain').hide()
    });
});